package kgame5.k25d.core.group {
	import kgame5.k25d.core.Camera25D;
	import kgame5.k25d.core.Node25D;
	import kgame5.k25d.Util25D;

	/**
	 * @author max
	 * 2010-12-14
	 */
	public class FastGroup25D extends Group25D{
		override public function update(camera:Camera25D):void{
			if(this.visible==false){
				return;
			}
			
			this.getDO().visible=true;
			
			//更新
			Util25D.worldToScreen(spcVO.v3d_p, v3d_screen);
			
			getDO().x=v3d_screen.x;
			getDO().y=v3d_screen.y;
			
			depth=v3d_screen.z;
			
			//--各个模型
			for each(var md:Node25D in aChild){
				md.update(camera);
			}
			
			//裁剪
			if(camera.canCull(getDO())){//如果出了屏幕，则不显示
				getDO().visible=false;//
			}
		}
	}
}
